package com.ebor.utils.utils.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 不能为表情验证器注解
 *
 * @author C
 */
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = NotEmojiValidator.class)
@Documented
public @interface NotEmoji {

    String message() default "字段不支持表情";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}